﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WorkflowCore.Service.Dto.Fundamentals;
using WorkflowCore.Service.Dto.Input;

namespace WorkflowCore.Service.Service
{
    public interface IWorkflowServer
    {
        /// <summary>
        /// 流程定义
        /// </summary>
        /// <param name="Input"></param>
        /// <returns></returns>
       //esults_<int> AddDefinition(WorkflowDefinitionInput Input);
        /// <summary>
        /// 流程定义
        /// </summary>
        /// <param name="Input"></param>
        /// <returns></returns>
        Results_<string> StartWorkflow(WorkflowLaunchInput Input);
        /// <summary>
        /// 审批
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        Results_<int> UpAudit(WorkflowAuditInput input);
        /// <summary>
        /// 驳回发起
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        Results_<int> UpRejectData(WorkflowAuditInput input);
    }
}
